﻿namespace ChessToys
{
    using System;

    public class CheckMateException : Exception
    {
        private Board _board;
        private Color _loosingColor;

        public CheckMateException(Board board, Color loosingColor)
        {
            _board = board;
            _loosingColor = loosingColor;
        }

        public Board Board
        {
            get { return _board; }
        }

        public Color LoosingColor
        {
            get { return _loosingColor; }
        }
    }
}
